class Parent {
    constructor(name) {
        this.name = name
    }
    getName() {
        console.log('parent.getName:', this.name)
    }
}

class Child extends Parent {
    constructor() {
        super('nodejs')
    }
    getName() {
        // super.getName()
        console.log('child.getName:', this.name)
    }
}

// new Child().getName()


// const name1 = 'attachment; filename=%5BBTSCHOOL%5D.%5B%E7%8B%99%E5%87%BB%E6%89%8B%E7%99%BD%E4%B9%8C%E9%B8%A6%5DSniper.The.White.Raven.2022.BluRay.720p.x264.2Audios.AC3-BtsHD.mkv.torrent';
// const name2 = `contentDisposition attachment; filename="%5Bacgrip%5D 241424.AI-Raws-The-Legend-of-Hei-4K-Reproduction-MKV.torrent"; filename*=UTF-8''%5Bacgrip%5D%20241424.AI-Raws-The-Legend-of-Hei-4K-Reproduction-MKV.torrent`

// function get(constent) {
//     const name = constent.replace(/"|'/g, ' ').split(';')[1]?.split('=')[1]?.trim();
//     console.log(name)
// }

// get(name1)
// get(name2)

// const file = '/Users/shanke/Documents/appdata/torrentmanager/torrents/[acgrip] 241424.AI-Raws-The-Legend-of-Hei-4K-Reproduction-MKV.torrent';

// const fs = require('fs');

// console.log(fs.existsSync(file));


const genre_ids = []
const genre_ids_rules = '2,4'.split(',')

const some = genre_ids.some((genre_id) => {
    return genre_ids_rules.includes(genre_id.toString())
})

console.log(some);